package com.thesis.manage.service.model;

/**
 * @author php
 * @date 2018/3/6
 */
public enum ExamineEnum {
    /**
     * 教师审核
     */
    TEACHER_EXAMINEING(1, "教师审核中"),
    /**
     * 领导审核
     */
    LEADE_EXAMINEING(2, "领导审核中"),
    /**
     * 审核未通过
     */
    EXAMINE_FAILED(3, "未通过"),

    /**
     * 审核通过
     */
    EXAMINE_SUCCESS(4, "通过");
    private Integer value;
    private String name;

    ExamineEnum(Integer value, String name) {
        this.name = name;
        this.value = value;
    }

    public static String getName(Integer value) {
        switch (value) {
            case 1:
                return TEACHER_EXAMINEING.getName();
            case 2:
                return LEADE_EXAMINEING.getName();
            case 3:
                return EXAMINE_FAILED.getName();
            case 4:
                return EXAMINE_SUCCESS.getName();
            default:
                return "";
        }
    }

    public String getName() {
        return name;
    }

    public Integer getValue() {
        return value;
    }
}
